]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Minor cleanups
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 20 Feb 2018 09:24:24 +0000 (10:24 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 20 Feb 2018 10:09:40 +0000 (11:09 +0100)
find_program() defaults to require the program in question, and as
failing to locate it is now fatal, there's no longer a need for
checking whether it was found later.

Spotted by Michael Catanzaro.

data/theme/meson.build
meson.build

index cf941ef2794d0f871ac296e69603a626da6c73aa..22bae3dd2c840be1bc4101298915ef87ea0e28f0 100644 (file)
@@ -14,14 +14,12 @@ styles = [
 
 theme_deps = []
 
-if sassc.found()
-  foreach style: styles
-    theme_deps += custom_target('style-' + style,
-                                input: '@0@.scss'.format(style),
-                                output: '@0@.css'.format(style),
-                                command: [
-                                  sassc, '-a', '@INPUT@', '@OUTPUT@'
-                                ],
-                                depend_files: theme_sources)
-  endforeach
-endif
+foreach style: styles
+  theme_deps += custom_target('style-' + style,
+                              input: '@0@.scss'.format(style),
+                              output: '@0@.css'.format(style),
+                              command: [
+                                sassc, '-a', '@INPUT@', '@OUTPUT@'
+                              ],
+                              depend_files: theme_sources)
+endforeach
index 895246e61f99b180af1390c03f2526cfe7b08940..f5b08b8f983b466d3bd7e875e65bfb723df07c73 100644 (file)
@@ -138,7 +138,7 @@ endif
 
 mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir')
 python = find_program('python3')
-sassc = find_program('sassc', required: true)
+sassc = find_program('sassc')
 
 cc = meson.get_compiler('c')